package com.tongji.housediy.controller.UserLoadandRegisterCMD
{
	import com.tongji.housediy.events.UserLoadandRegisterEvent.GetUserLoadEvent;
	import com.tongji.housediy.model.UserInforModel;
	import com.tongji.housediy.service.UserService;
	import mx.controls.Alert;
	import org.robotlegs.mvcs.Command;
	
	public class GetUserLoadCommand extends Command
	{
		[Inject]
		public var service:UserService;
		[Inject]
		public var model:UserInforModel;
		[Inject]
		public var event:GetUserLoadEvent;
		public function GetUserLoadCommand()
		{
			super();
		}
		public override function execute():void
		{
			model.updateUserInfor(event.UserID,event.UserName);
		}
	}
}